let { resolve } = require('path')
let WebPack = require('webpack')
module.exports = {
    entry: {
        dllAxios: ['./node_modules/axios/index.js','vuedraggable']
    },
    output: {
        filename: '[name].js',
        path: resolve(__dirname, 'dll'),
        library: '[name]_[hash]'
    },
    plugins: [
        //通过manifest.json文件提供映射
        new WebPack.DllPlugin({
            name: '[name]_[hash]',
            context: __dirname,
            //输出文件路径
            path: resolve(__dirname, 'dll/manifest.json')
        })
    ],
    mode:'production'
}